<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="com.peixunp.bean.Place"%>
<%@page import="com.peixunp.util.Constants"%>
<script>
	function checkSearchForm(){
		if($("#key").val().trim()==""){
			alert("请输入查询的关键字,如: '雅思' 或者 '会计培训'...等");
			return false;			
		}
	}
</script>
<% Place city =  (Place) request.getAttribute("city"); %>
		<div class="header">
			<div class="top_info">
				<div class="top_info_right">
					<!-- banner ad -->
					<jsp:include page="/WEB-INF/jsp/ad/topAd.jsp"/> 
				</div>
				<div class="top_info_left">
					<p><br/><b><%=city==null?"":city.getPname()%></p>
				</div>
			</div>
			<div class="logo">
				<h1><a href="<%=Constants.URL%>" title="培训学校评价网"><span class="dark">培训学校评价网</span></a></h1>
			</div>
		</div>
		
		<div class="bar">
			<ul>
				<!-- li class="browse_category">
						当前位置 :
				</li-->
				<li ><a href="<%=Constants.URL%>">首页</a></li>
				<li><a href="<%=Constants.URL%>/remark/good.html">好评论列表</a></li>
				<li><a href="<%=Constants.URL%>/remark/bad.html">差评论列表 </a></li>
				<li><a href="<%=Constants.URL%>/news/index.html">业界新闻 </a></li>
				<li ><a href="<%=Constants.URL%>/information/index.html">最新培训信息</a></li>
				<!-- li class="active"></li-->
				<li>
					<!-- Baidu Button BEGIN -->
					<div id="bdshare" class="bdshare_b" style="line-height: 12px;float:left;"><img src="http://bdimg.share.baidu.com/static/images/type-button-3.jpg" />
					</div>
					<script type="text/javascript" id="bdshare_js" data="type=button" ></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
						document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
					</script>
					<!-- Baidu Button END --></li>
			</ul>
		</div>
		<div class="search_field">
			<form method="post" action="<%=Constants.URL%>/search/" onsubmit = "return checkSearchForm();">
				<div class="search_form">
					<input type="hidden" id="cityId" name="cityId" value="<%=city==null?"":city.getId()%>"/>
					<p><%=city==null?"":city.getPname()%>学校查找: <input type="text" name="key" id="key" class="search" placeholder="学校简称或者培训分类，如:雅思、会计培训" /> 
					<input type="submit" value="查找" class="submit" /> <img src="<%=Constants.URL%>/images/arrow_red.gif" width="4" height="13"><a class="grey" href="<%=Constants.URL%>/school/add.html"> 添加学校</a></p>
				</div>
			</form>
			<p>客观评论 放心选择 好学校一起推荐 不好的学校一定要让大家知道</p>
		</div>